<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:page="urn:page">
  <xsl:output method="html" encoding="utf-8"/>
  <xsl:template match="/">
	<xsl:variable name="code" select="page:xRequest('siteid','350100')"/>
    <h4>
      <select name="siteid" onchange="TM.loadContent('TreeMenu1','TreeMenu','siteid='+this.value)">
      <xsl:for-each select="rows/row">
      <option value="{F_Code}" title="{F_Code}"><xsl:if test="F_Code=$code"><xsl:attribute name="selected">1</xsl:attribute></xsl:if><xsl:value-of select="F_Name"/></option>
      </xsl:for-each>
      </select>
    </h4>
    <ul>
      <li class="Opened"><a href="javascript:void(0)" onclick="TM.tQuery('siteid={$code}')"><xsl:value-of select="//rows/row[F_Code=$code]/F_Name"/></a>
        <xsl:value-of select="page:xLoadList('AreaQuickQuery',0,$code)" disable-output-escaping="yes"/>
      </li>
    </ul>
    <xsl:if test="page:xRequest('siteid')!=''">
    <script type="text/javascript">
	if(treeMenu1) treeMenu1.initMenu();
	</script>
    </xsl:if>
  </xsl:template>
</xsl:stylesheet>